<?php

namespace App\Console;

use App\Console\Commands\AppUserProfileSync;
use App\Console\Commands\Cache;
use App\Console\Commands\DeleteEmptyAppUserProfileSync;
use App\Console\Commands\DPStatic;
use App\Console\Commands\DrawRecordSync;
use App\Console\Commands\ExchangeRecordSync;
use App\Console\Commands\MakeVoteCache;
use App\Console\Commands\PhpCS;
use App\Console\Commands\PrizeRecycle;
use App\Console\Commands\ProfileSync;
use App\Console\Commands\Sn;
use App\Console\Commands\Storage;
use App\Console\Commands\StorageUnlock;
use App\Console\Commands\Temp;
use App\Console\Commands\Testing;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        Cache::class,
        Storage::class,
        StorageUnlock::class,
        MakeVoteCache::class,
        Testing::class,
        PhpCS::class,
        DPStatic::class,
        PrizeRecycle::class,
        DrawRecordSync::class,
        ExchangeRecordSync::class,
        AppUserProfileSync::class,
        DeleteEmptyAppUserProfileSync::class,
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule $schedule
     * @return void
     */

    protected function schedule(Schedule $schedule)
    {
        // $schedule->command('cache')->withoutOverlapping()->everyMinute();
        // $schedule->command('storage')->withoutOverlapping()->everyMinute();
        // $schedule->command('storage-unlock')->withoutOverlapping()->everyMinute();
    }

    /**
     * Register the Closure based commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        require base_path('routes/console.php');
    }
}
